package com.example.hotelmanager.common;

import android.util.Log;

/**
 * Log日志信息帮助类
 * 提供应用log输出的全局控制
 */
public class Logger {

	private static final String APP_LOG_TAG = "hotel_manager";
	public static final boolean IS_DEBUG = true;
	
	private Logger(){
		super();
	}
	
	public static void e(String msg){
		if(IS_DEBUG)
			Log.e(APP_LOG_TAG, msg);
	}
	
	public static void e(String tag,String msg){
		if(IS_DEBUG)
			Log.e(tag, msg);
	}
	
	public static void d(String msg){
		if(IS_DEBUG)
			Log.d(APP_LOG_TAG, msg);
	}
	
	public static void d(String tag,String msg){
		if(IS_DEBUG)
			Log.d(tag, msg);
	}
	
}
